package com.macro.mall.tiny.config;

import com.macro.mall.tiny.util.SensitiveWordUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: i_kun
 * @Desc: o_。
 * @create: 2025-06-27 22:46
 */
@Configuration
public class SensitiveConfig {

    // 从配置文件中读取路径
    @Value("${sensitive.word.path.classpath}")
    private String sensitiveWordPath;
    @Bean
    public SensitiveWordUtil sensitiveWordUtil() {
        return new SensitiveWordUtil(sensitiveWordPath);
    }
}
